package cn.elead.chaos.sso.sample.handler;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import cn.elead.chaos.sso.core.handler.LoginSuccessHandler;
import cn.elead.chaos.sso.core.user.LoginUser;
import lombok.extern.slf4j.Slf4j;

/**
 * 登录成功,可以在这里转换更多用户信息，或是缓存用户信息
 * 
 * @author luopeng
 *
 */	
@Slf4j
public class LoginSuccessHandlerImpl implements LoginSuccessHandler {

	@Override
	public void onLoginSuccess(HttpServletRequest request, HttpServletResponse response, LoginUser user) {
		log.info( "onLoginSuccess :{}", user);
	}

	@Override
	public void onEnd(HttpServletRequest request, HttpServletResponse response, LoginUser user) {
		log.info( "onEnd :{}", user);
	}

}
